package com.zhaojindong.ioc.component.register.second;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * notice useDefaultFilters = false
 * you need to close default filter regulation with use includeFilters
 */
@Configuration
@ComponentScans({
        @ComponentScan(value = "com.zhaojindong.ioc.component.common.scancomponent", includeFilters = {
                @ComponentScan.Filter(type = FilterType.ANNOTATION, value = Controller.class),
//                @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = EgRepository.class),
                @ComponentScan.Filter(type = FilterType.CUSTOM, value = MyTypeFilter.class)
        }, useDefaultFilters = false)
})
public class SecondConfig {

}